#include "GLES2GpuProgram.h"
#include "LogManager.h"

using namespace PVM;

GLenum getGLShaderType(GpuProgramType programType);

GLenum getGLShaderType(GpuProgramType programType)
{
	switch (programType)
	{
		case GPT_VERTEX_PROGRAM:
		default:
			return GL_VERTEX_SHADER;
		case GPT_FRAGMENT_PROGRAM:
			return GL_FRAGMENT_SHADER;
	}
}

GLES2GpuProgram::GLES2GpuProgram(ResourceManager* creator, const std::string& name,
	ResourceHandle handle, const std::string& group, bool isManual,
	ManualResourceLoader* loader)
: GpuProgram(creator, name, handle, group, isManual, loader)
{
	if (createParamDictionary("GLES2GpuProgram"))
	{
		setupBaseParamDictionary();
	}
}

GLES2GpuProgram::~GLES2GpuProgram()
{
	unload();
}
